home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / httpd-3.0-t / httpd-3 / usr / local / lib / httpd / config / prot.conf < prev    next >
Encoding:
Text File  |  1994-06-11  |  2.1 KB  |  91 lines

  1. #
  2. #    Sample configuration file for cern_httpd for running it
  3. #    as a normal HTTP server WITH access control.
  4. #
  5. # See:
  6. #    <http://info.cern.ch/hypertext/WWW/Daemon/User/Config/Overview.html>
  7. #
  8. # for more information.
  9. #
  10. # Written by:
  11. #    Ari Luotonen  April 1994  <luotonen@dxcern.cern.ch>
  12. #
  13.  
  14. #
  15. #    Set this to point to the directory where you unpacked this
  16. #    distribution, or wherever you want httpd to have its "home"
  17. #
  18. ServerRoot    /where/ever/server_root
  19.  
  20. #
  21. #    The default port for HTTP is 80; if you are not root you have
  22. #    to use a port above 1024; good defaults are 8000, 8001, 8080
  23. #
  24. Port    80
  25.  
  26. #
  27. #    General setup; on some systems, like HP, nobody is defined so
  28. #    that setuid() fails; in those cases use a different user id.
  29. #
  30. UserId    nobody
  31. GroupId    nogroup
  32.  
  33. #
  34. #    Logging; if you want logging uncomment these lines and specify
  35. #    locations for your access and error logs
  36. #
  37. # AccessLog    /where/ever/httpd-log
  38. # ErrorLog    /where/ever/httpd-errors
  39. LogFormat    Common
  40. LogTime        LocalTime
  41.  
  42. #
  43. #    User-supported directories under ~/public_html
  44. #
  45. UserDir    public_html
  46.  
  47. #
  48. #    Protection setup by usernames; specify groups in the group
  49. #    file [if you need groups]; create and maintain password file
  50. #    with the htadm program
  51. #
  52. Protection PROT-SETUP-USERS {
  53.     UserId        nobody
  54.     GroupId        nogroup
  55.     ServerId    YourServersFancyName
  56.     AuthType    Basic
  57.     PasswdFile    /where/ever/passwd
  58.     GroupFile    /where/ever/group
  59.     GET-Mask    user, user, group, group, user
  60. }
  61.  
  62. #
  63. #    Protection setup by hosts; you can use both domain name
  64. #    templates and IP number templates
  65. #
  66. Protection PROT-SETUP-HOSTS {
  67.     UserId        nobody
  68.     GroupId        nogroup
  69.     ServerId    YourServersFancyName
  70.     AuthType    Basic
  71.     PasswdFile    /where/ever/passwd
  72.     GroupFile    /where/ever/group
  73.     GET-Mask    @(*.cern.ch, 128.141.*.*, *.ncsa.uiuc.edu)
  74. }
  75.  
  76. Protect    /very/secret/URL/*      PROT-SETUP-USERS
  77. Protect    /another/secret/URL/*    PROT-SETUP-HOSTS
  78.  
  79. #
  80. #    Scripts; URLs starting with /cgi-bin/ will be understood as
  81. #    script calls in the directory /your/script/directory
  82. #
  83. Exec    /cgi-bin/*    /your/script/directory/*
  84.  
  85. #
  86. #    URL translation rules; If your documents are under /local/Web
  87. #    then this single rule does the job:
  88. #
  89. Pass    /*    /local/Web/*
  90.  
  91.